package com.lovol.surfaceviewdemo

import android.content.Intent
import android.os.Bundle

import android.view.LayoutInflater
import androidx.appcompat.app.AppCompatActivity
import com.lovol.surfaceviewdemo.databinding.ActivityMainBinding


class MainActivity : AppCompatActivity() {
    lateinit var binding: ActivityMainBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivityMainBinding.inflate(LayoutInflater.from(this))
        setContentView(binding.root)
        binding.apply {
            btn01.setOnClickListener {
                startActivity(Intent(this@MainActivity, SinFunActivity::class.java))
            }
            btn02.setOnClickListener {
                startActivity(Intent(this@MainActivity, ScrollTextViewActivity::class.java))
            }
            btn03.setOnClickListener {
                startActivity(Intent(this@MainActivity, HandwriteActivity::class.java))
            }
            btn04.setOnClickListener {
                startActivity(Intent(this@MainActivity, FlyActivity::class.java))
            }
            btn05.setOnClickListener {
                startActivity(Intent(this@MainActivity, MovingBallActivity::class.java))
            }


            btn10.setOnClickListener {
                startActivity(Intent(this@MainActivity, ThreadActivity::class.java))
            }
        }
    }


}